#ifndef DEBUG_DIALOG_H
#define DEBUG_DIALOG_H

#include <QDialog>
#include "ftpwindow.h"
#include <QProcess>
#include "filemanager.h"
#include "ledarray.h"
#include "LedControl.h"
#include "QTextBrowser"
#include "debug_platform.h"

class LedControl;

namespace Ui {
class debug_Dialog;
}

class debug_Dialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit debug_Dialog(QWidget *parent = 0);
    ~debug_Dialog();
    void entrance();

private slots:
    void on_printer_test_btn_clicked();
    void on_update_btn_clicked();
    void on_printer_initial_clicked();
    void update_finished(QString filename);
    void on_sterilization_default_setting_recovery_btn_clicked();

    void on_ts_calibrate_btn_clicked();

    void on_system_manager_btn_clicked();

    void on_password_checkBox_stateChanged(int arg1);

    void on_continuous_checkBox_stateChanged(int arg1);

    void timeDone();
    void exit();

    void on_debug_info_btn_clicked();

    void on_debug_platform_btn_clicked();

    void on_test_checkBox_stateChanged(int arg1);

private:
    Ui::debug_Dialog *ui;
    FtpWindow* ftpWin;
    QProcess cmd;
    filemanager w;
    void restart_application();
    QStringList strlist;
    LedArray* IOMonitor;
    QTimer* mytimer;
    debug_platform debug_dialog;
};

#endif // DEBUG_DIALOG_H
